package lab2.text35;

/**
 * Created by Administrator on 2017/11/21.
 */
public class Salesman extends Employee{
    int days;
    double baseSalary;
    int quantity;
    double commision;

    public Salesman(String name,double baseSalary,int quantity,double commision) {
        super(name);
        this.baseSalary=baseSalary;
        this.quantity=quantity;
        this.commision=commision;
    }
    public  double computerSalary(){
        return  baseSalary+quantity*commision;
    }
}
